<!DOCTYPE html>
<html lang="ch" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>管理员界面</title>
    <link href="/assets/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
    <script src="/assets/js/bootstrap.bundle.min.js"  crossorigin="anonymous"></script>
    <link href="/assets/css/main.css" rel="stylesheet">
</head>


<body>
<div class="container">
    <nav class="navbar navbar-expand-lg bg-body-tertiary">
        <div class="container-fluid">
            <a class="navbar-brand" href="#">焕新网</a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarScroll" aria-controls="navbarScroll" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarScroll">
                <ul class="navbar-nav me-auto my-2 my-lg-0 navbar-nav-scroll" style="--bs-scroll-height: 100px;">
            <li class="nav-item">
              <a class="nav-link active" aria-current="page" href="#" th:href="@{'/administratorlist?uid='+${administrator.id}}">首页</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="#" th:href="@{'/commonlist?uid='+${administrator.id}}">用户管理</a>
            </li>
            <li class="nav-item dropdown">
                <a class="nav-link" href="#" th:href="@{'/commoditycontrol?uid='+${administrator.id}}">商品管理</a>
            </li>
            </ul>
            </div>
        </div>
    </nav>
    <div th:text="${message}" class="error"></div>
</div>
</body>

</html>